Move code, remove duplicate gameObjects array