Made an attempt to overhaul my code to account for a bug that caused the
do-while loop to run on the second piece of input in a line with invalid
first input; also tried to make a seperate parse method in order to be
able to test it in FactorTest.
Code became over-engineered/over-worked so I kept it distinct in a class
named DefunctFactor. Factor should be utilized (as it functions for the
most part). 
Factor test still needs to be written.