I made this game going off this tutorial :http://www.lostdecadegames.com/how-to-make-a-simple-html5-canvas-game/