By travelling through time to touch the yellow square (I.e clicking Q to go to the past while you are in the same spacial position as the yellow square, until you hit the yellow square). You cant touch the yellow square through space in these levels since it the board gets updated the moment you step in it, and the yellow square disappears.