moveEntities implementation (partial)