check for winner after every move
minor optimization in check if there is a winner