POJ 1568 Find the Winning Move