moved game to its own js file.