finished coding the solver!
now to test it...