Working better, TODO improve isWin method