second draft checkWin()

a second attempt, still in progress