Pool updated to work with gameobjects