snake on C++