Snake game written in C++