Restructuring Part 2
- resolved all of the main game.js and pageend.js into separate files and setup the modules
- next up need to rewire everything and test that it all works before integrating FrozenBattle