public Game(JFrame window){
		if(window!=null){
			window.dispose();
			}
			Game game=new Game();
			
			window=new JFrame("Rubik's Race");
			
			window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
			window.setResizable(false);
			window.add(game);
			window.pack();
			window.setLocationRelativeTo(null);
			game.start();
			window.setAlwaysOnTop(true);
			
			window.setVisible(true);
	}