It starts at 2, but when the snake eats an apple it becomes 1 and after it eats another apple, it goes back to 2. Please help!

This is my code:
//x, y
int xHead = 3, yHead = 6;

int xMax = 13,...