Modified solve logic

moved startPos and stopPos to lParenPos and rParenPos.
also modified TruthTableListAdapter answer logic