Based on this Martín González’s block, shows how to properly select the colours taking the neighbours in account as in this other block, which is based on this other one by Jason Davies!