StateManager done

Finished state management and am progressing into swapping levels.