Without seeing his current code it is hard to fix it but I did post some working code above that he should be able to adapt.
If we knew how close together his diamonds were and how large each diamond was we could offer more help.
If we knew how close together his diamonds were and how large each diamond was we could offer more help.