functional game logic, or at least a start to it.