what ever goblin the player hits, I want him to do what's in the if statement, not all the goblins, i want to target that goblin that's been hit, and hit only.
But your statement is correct, you will have that needed goblin...
If you want to stop your collision algorithm after first collision, you could use break or return
;
if (goblin.hitTestObject(player)) //if anything from that array hits the player then do this
{
//Do whatever you need
//Decide what flag you need canMove *or* cantMove ;)
goblin.canMove = false;
break;
}