check win conditions to tell when game is over