[#20] add isWin() method