Adding obstacles, collision detection and game mechanics to our example browser-based game.