public void SwitchTo(string name)
 {
     if (gameStates.ContainsKey(name))
     {
         currentGameState = gameStates[name];
         Console.WriteLine("Switched gamestate to " + currentGameState);
     }     
 }
 public void AddGameState(string name, State state)
 {
     gameStates[name] = state;
 }
 public GameStateManager()
 {
     gameStates = new Dictionary<string, State>();
     currentGameState = null;
 }