Split solve() in sloveStart() and sloveStep().