Moved painting logic to terrain tools controller