removed carriage returns from dictionary file
minimal working version of solve()