When i get rid of the top for loop and replace 'i' with 7(7th row of the board), the program works correctly. Since i want to check every row i added the top for loop. When i do that, the program doesn't end when 5 'X's come up in a row.
actually its not working. when i get 4 X's it returns true. I put the if after the count is done for that row, but now it doesn't end when i have 5 X's in a row.
If i am starting at the 7th row i want to go down a row until i hit the last one. So changed it to i>=0. but now when the 7th row is all 'X's it exits correctly but when the 6th row is all 'X's it doesnt exit.