Preliminary block-painting logic, now the kinds of blocks being chosen are more intelligent

But still not perfect