@Override public void pause() { // Put the bounds game.getState() .setBoardBounds( new Rectangle(board.getX(), board.getY(), board.getWidth(), board.getHeight())); // Show the pause dialog if it is not already visible. if (!paused) { pauseGame(); } }