@Override
	/***
	 * This function will first check if
	 * the game is over, and if so
	 * move on the the victory screen
	 * 
	 * It will then update itself, the
	 * player panels, and the gameBoard
	 * display
	 */
	public void paintComponent(Graphics g){
		super.paintComponent(g);
		if(this.gameModel.getStatus() == Board.GAMEOVER_PHASE){
			this.mw.showEnd();
		}
		
		if(this.gameModel.getCurrPlayer().isHuman())
			this.currentPlayer.setText(this.gameModel.getCurrPlayer().getName() + ", " + this.gameModel.getPhaseText());
		else
			this.currentPlayer.setText(this.gameModel.getPhaseText());

		this.p1Score.setText("Score: " + String.valueOf(this.gameModel.getPlayer1().getScore()));
		this.p2Score.setText("Score: " + String.valueOf(this.gameModel.getPlayer2().getScore()));
		
		this.p1.repaint();
		this.p2.repaint();
		this.gp.repaint();
		int steps = 0;
		while(this.gameModel.isMoving() && steps < 10){
			this.gp.repaint();
			drawBackground(g);
			steps++;
		}
		
		this.gp.repaint();
		drawBackground(g);
	}