Make a path for the guy. Use 1 to drop the brick, use 2 to rotate the brick, and use 3 to change the brick.