Snake c++