Adding main.js that holds the main state of the game.