added count of moves and win criteria