Game restructured to support states.