Your goal is to align three O pieces in a row, either horizontally or vertically. You win when three O pieces are connected in a straight line.
You win when three O pieces (including your player piece) form a straight line horizontally or vertically. The line must be three consecutive cells with no gaps.
You lose if three X pieces align in a row before you complete your winning line. Be careful not to accidentally push X pieces into a winning position!