Title may not be the right terms but its my issue. I started learning
Java around a month ago and like most people took on a project that was beyond my knowledge. So I decided to make something easier, a remake of the classic Snake game. I had help from some tutorials but once those were done, I decided I wanted to add more to the game. My first idea was to add in a score per food eaten, which works. Then I wanted a game over screen to show up when you hit the edge or yourself. On this screen it would say "Game Over ! Score: xxxx" and "Made by: Me". I got the game over screen to display when I die, however my game just restarts after 5 seconds (plan to change this later) and this is where the issue shows up. The score displayed on screen resets to 0, but the game over screen stays shown. It doesn't clear (not sure on the right term to use here) and show the game again so you can play another round.
This is the code from the main class and is where the issue is. I appreciate any help you all can provide me as its probably something silly that I've overlooked.