Now find exit closest to top left hand corner
Included RANDOM option (but function not working properly yet)
Typecast after stand function to stop warning