public Game()
    {
    	super("FF Simulator");
    	
    	//frame name
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setSize(WINDOW_WIDTH, WINDOW_HEIGHT);
        setLayout(new BorderLayout());
        
	    gamePanel = new GamePanel(WINDOW_WIDTH,WINDOW_HEIGHT);
	    add(gamePanel);
	    center(this);
	    setVisible(true);
	    gamePanel.setFocusable(true);
		
	   	System.out.println("New Game Starting");
	  	//reset startNewGame
	   	startNewGame = false;
	    gamePanel.setGameState(0);
	   	
	    //main game loop, close to halt
	    while(!startNewGame)
	    {
	    	Pauser.pause(10);
	    	switch(gameState)
	    	{
		   		case 0:
		   		{
		   			gameState = gamePanel.startMenu(gamePanel);
		   			break;
		   		}
		   		case 1:
		   		{
		   			gameState = gamePanel.move(gamePanel);
		   			break;
		   		}
	    		case 99:
	    		{
	    			startNewGame = true;
	    			setVisible(false);
	    			break;
	    		}
	    		default:
	    		{
	    			System.out.println(gameState);
	    			System.out.println("gameState errorasdf");
	    			System.exit(1);
	    		}
	    	}
    	}
   	}