Update snake.cpp

clean it a little bit