Basic snake game written in c++