Score: 0
Controls: Arrow Keys to override AI | Spacebar to Pause
The AI now calculates not just the path to food, but verifies it can safely reach its own tail afterwards. This prevents it from cutting itself off and dying in corners.