Finished overhaul and restructure of logic.
Commented out unused code, for assement.
Added and designed better bracket dealing system.
Introduced significant stack overflow error on line 324 (not sure why),
and other overflow errors due to incompetence.