Update snake.cpp

add more feature, able to change size of window and change speed of snake