Fixed Equation Balancing

Finally done! Remember to compare Strings with .equals(), not ==