In the first hand, you were way behind preflop and should have lost anyway. In the 2nd hand, the river card should have been the Q of spades giving him Q's full of K's beating your straight. That way you would be busted and know poker the way I know poker, the opponent always hitting what he needs almost 100% of the time.