STANDARD FORM IS DONE!
A few optimizations in the math window class.

I took out the big code for each thing and took it out and made it so
that each if and else was smaller.