Fixed min_dist option... mostly. Still needs work when player is withing min_dist of boundaries.
Fixed small bug with player death