Added player-trail collision detection