Simple 2D HTML5 game with path drawing