bug in getChild() is breaking ai
added copy method to pieces