My Tic Tac toe Win32 game is malfunctioning.
|............|
|............|
|............|
|............|
|............|
|............|
The above is the game board. The game needs 5 in a row to win. When I play 3 rows vertically at the extreme top and then play 2 at the extreme bottom(but one step to the left/right), it thinks that it's 5 in a row.
|.....x......|
|.....x......|
|.....x......|
|............|
|...x........|
|...x........|
Like the above. It also happens diagonally. Maybe there's something wrong with my FOR LOOP which checks for rows. Here is the code for the FOR LOOP.