added win/loss record and better input handling