Added collision detection for snake colliding with itself