checks if snake collides with itself.