checkSnakeCollision