Snake Update 4
After basic input, I had to make sure that the snake didn’t go off the edge of the window. To do that, I just made some simple code along the lines of:
if(snakeHeadPositionX < windowWidth * 0 || snakeHeadPositionX > windowWidth ||
snakeHeadPositionY < windowHeight * 0 || snakeHeadPositionY > windowHeight)