Refactored game.js into main controller and created a deck service