Added function to get max floor in elevator direction to unload
customers