Trying to make a little html5 game for fun