fixed chooseTheBestSpot function