done testing the isBalanced function now