A simple snake game in C++ and SDL