Complete (functional) rewrite of the original hotelLogic repo