Implementing Self-Collision Detection for Snake in C++ - Snake Game - ProjectAI