The red dot will follow the blue dot by moving its x and y independently (so it still moves when it runs into a wall). You can control the blue dot with your arrow keys. Note that in this example the blue dot can ride over walls on the red dot. In a real game, the player would lose or something when he/she touched the red dot.