find closest exit(will test later)