Javascript and Videogame Exercise