code for videogame