Refactored a lot of code. Created a GameLogic class that does a lot of the computation