The state machine is up and running! main.cpp is an absolute monster of a file now, but I can easily switch between states in the game for the menu screen, gameplay and gameover. I just need to implement the game over screen and then the game is at version 0.9