I'd like to improve the readability of the project and add a restart button
Some examples for the readability part:
ranX= 0 + (int)(Math.random()*19); -> ranX = (int) (Math.random()*19)
directionSnake = 1 -> snakeDirection = Directions.RIGHT
ArrayList<ArrayList<DataOfSquare>> Squares= new ArrayList<ArrayList<DataOfSquare>>(); -> ... = new ArrayList<>();