The scoreboard should have its own space instead of being positioned on top of the game area. The gap between the scoreboard and the game area should be unplayable (i.e. the snake should die) and change dynamically. One possible implementation is as follows: increase gap downwards until the arena is half the original size, then increase it back up until its original position. The apple should be respawned in case its position becomes unplayable.
The scoreboard should have its own space instead of being positioned on top of the game area. The gap between the scoreboard and the game area should be unplayable (i.e. the snake should die) and change dynamically. One possible implementation is as follows: increase gap downwards until the arena is half the original size, then increase it back up until its original position. The apple should be respawned in case its position becomes unplayable.