Finished game logic, started test functions

Up-to-date as of September 25. 2013.