Fixed bugs

Squashed bugs in solve() and fried them in hot sauce! Yummy!