Add a parameter to chooseExit so that we may force the map to select an exit