В методе gameOver() должен вызываться метод родительского класса stopTurnTimer().
В методе gameOver() должен вызываться метод родительского класса showMessageDialog(Color, String, Color, int).
private void gameOver(){
super.stopTurnTimer();
super.showMessageDialog(Color.BLACK, "Game Over", Color.RED, 75);
isGameStopped = true;
}
package com.javarush.games.snake;
import com.javarush.engine.cell.*;
public class Apple extends GameObject {
private static final String APPLE_SIGN = "\uD83C\uDF4E";
public boolean isAlive = true;
public Apple(int x, int y) {
super(x, y);
}
public void draw(Game game){
game.setCellValueEx(x, y, Color.NONE, APPLE_SIGN, Color.DARKRED, 75);
}
}