The triangles avoid the mousepointer, so use that to move them
I used @griffpatch 's code, but added the different colours