public void update() {
        statusPanel.setText(status.getText());
        repaint();
        if(player.hasWon() && !player.getWinnerMessageHasBeenShown() && !grid.getIsTest()){
        	showWinMessage();
        }
    }