A basic 2D top-down game with HTML5 and Javascript