i need some way to print spaces after the snake so it doesnt leave any points behind or a way to make the food function not to generate random points everytime
You know what the last position of the snake was, so just output your spaces after you output the snake.