The core functionality in my re-implementation of the game Shattered Plans.