aStar fix so that all the entitys are only looped throu once