Experimenting with HTML5 canvas to make a simple javascript game