- Improved snake collision logic.