Finished state manager. Kinda ugly but it'll get the job done. Also fixed a peculiar issue where I forgot to refresh the renderer and window properly. My only hint was that mouse position was registering wrong!