isEmptyParkingLot(i,dir) is implemented