private static GameObject searchLoop(List<GameObject> gameObjects, String name){

        GameObject temp = null;

        for(GameObject go:gameObjects){
            if (go.getId().equals(name)){
                return go;
            }else {
                temp = searchLoop(go.getChildren(),name);
            }

            if (temp != null){
                return  temp;
            }
        }
        new RugieError(new Search(), "Could not find GameObject with id: " + name).show();
        return temp;
    }