keep the snake in the red box