Refactored GameManager into 2 classes

Started working on SmartAI. Refactored GameManager into 2 classes (a
base class and a subclass) to support working with a test grid.