New algorithm for check if one of players win.
Two players