public void loadState(int state) {
        if (state == MENUSTATE) {
            gameState[state] = new MenuState(this);
        }
        if (state ==  LEVEL1STATE) {

            gameState[state] = new Level1State(this);

        }
        if (state == LEVEL2STATE) {

            gameState[state] = new Level2State(this);

        }
        if (state == LEVEL3STATE) {

            gameState[state] = new Level3State(this);

        }
        if (state == LEVEL4STATE) {

            gameState[state] = new Level4State(this);

        }
        if (state == LEVELFINALSTATE) {

            gameState[state] = new LevelFinalState(this);

        }
        
         if (state == PAUSEDSTATE) {

            gameState[state] = new PausedState(this);

        }
         

         if (state == HIGHSCORESTATE) {

            gameState[state] = new HighScoreState(this);

        }


         if (state == FINALGAMESTATE) {

            gameState[state] = new FinalGameState(this);

        }
    }