Fix entities jumping around

targetX&Y declared on a global scope making it shared for cilk..