I'm new to building games and using SFML and I have created a basic window with a menu and the player can choose to either play the game or exit, but my issue is once the player clicks play I need to switch the scene and move to the game scene. I've searched for hours trying to find a book or website that has a good example of implementing a state machine, but have not been successful