Update gameLogic.js

Changed the gameLogic to include AngularJS. Also had to change the logic of the game for it to work with the emulator.