Hunted down that stupid graphics bug. The snake's last element's buffer was uninitialized, and thus it was moved to 0/0 when the game steps.
Removed some debug printlines I forgot. I kinda feel like a surgeon who forgot his tools in a patient.