check for winner after rendering the board