Basic javascript game to learn programming