First commit
Fixed advance offset calculation
Modularized game algorithms
Modularized Game class internals