can now generate moves in up, down, left, right directions.