Fixed bug where move up and move down method in groups did not work.

The moveUp and moveDown methods in the Group class were swapping an index and a child instead of the two children.