One hot encoder
def hot_one_state(index): array = np.zeros(NUM_STATES) array[index] = 1. return array