finalize the snake game