I'm currently trying to create a Tic Tac Toe AI. So far it's going fairly well however for some reason an X won't draw when I click and O to two locations- the 6th and 7th spots(counting from the top, left to right, starting at 1). When I click any other location the computer will draw an X where I want it, but when I click those two locations an X won't draw. Here's the code in question (there's more, but none of it is relevant to the problem). occupationState, for those wondering, is the array I'm using to draw the board and vert is just a ghetto fix for a problem I was having with drawing to the proper location. A value of 1 in occupationState will tell the computer to draw an O in that location, a value of 2 will tell the computer to draw a value of X at that location.