Graphics manager, state-based game model, bug fixes