Added base version of state manager working. Refactor SinglePlayer to make it work with manager