Fixed some errors when using multiple blocks and tested it. Also added support for working hours/leisure time, so that blocks get placed in their proper time slot