public void setView(int view){
		if(view==MENU){
			MainMenuView menu = new MainMenuView(mainWindow,resume);
			this.view = menu;
		}
		else if(view==RESUME){
			this.view = gameView;
			gameView.resume();
		}
		else if(view==GAME){
			gameView = new GameView(mainWindow);
			if(time>0){
				gameView.act.setTime(time);
				time = 0; 
			}
			if(asteroids>0){
				gameView.act.setAsteroids(asteroids);
				asteroids = 0; 
			}
			this.view = gameView;
			gameView.start();
		}
		else if(view==GAME_OVER){
			GameOverView gameOverView = new GameOverView(mainWindow,gameView.score.getScore());
			this.view = gameOverView;
		}
		else if(view==RANK){
			RankingView rankingView = new RankingView(mainWindow);
			this.view = rankingView;
		}
		else if(view==OPTIONS){
			OptionsView optionsView = new OptionsView(mainWindow);
			this.view = optionsView;
		}
		else if(view==PREPARE_GAME){
			ConfigureGameView configureGameView = new ConfigureGameView(mainWindow);
			this.view = configureGameView;
		}
		
		mainWindow.setView(this.view);
	}