Make a Game class & move some functions to methods. Also have etg.js require modules it uses