The first player to form a connection of four pieces horizontally, vertically, or diagonally wins the game