Why does my app skip an if statement?
<p>I have a tictactoe app, with an array of 3x3 imageButtons, all of them pointing to a common         <code>onClick()</code> method. This method gets the imageButton id and gets the array coordinates of the clicked button. I am making a special Tic tac toe, where once you have placed 3 pieces, you can't place any more, but you can move them to any other free spot. For that, I have two variables counting the remaining pieces for each "team". </p>

<p>Then, on the <code>onClick()</code> method, I handle the moving or placing differently. Placing works ok, but for moving, I have 4 variables, that are a buffer of X and Y coordinates of the piece we are moving. I also have a boolean variable, holding if the spot from which we are moving the piece is already chosen. This is false from default. If it is false, it waits until you input the spot. Then comes the problem. I have an if statement asking if the boolean variable is false. It is false(as I can see on the debugger) but the programm appars to skip it. What could be the problem?</p>
