changing up game.js to be more object oriented, and more code reuse friendly.