a simple game in html5 canvas