added isAllowedToReplace(Block block) to paintutils