python script to fin out if a player is winning in next move or not