Refactored Main into Game class and separated into several methods. All tests passing.