Snake2D application with C + + and OpenGL