improve scene manager

Making it better control the game.