Arrange blocks into horizontal rows to obtain the highest score