First click is X, second click is O. Third click X, e.t.c. You win when you get three in a row horizontally, vertically, or diagonally.