TicTacToe - Cross and Circle blinks randomly

Hi,

I am new in libGDX, I was trying to create very simple game TicTacToe for learning purpose. My problem is when I click on the cell of the board, it blinks between Cross and Circle randomly. What I wanted is when we click the cell, cross and circle appear alternately. Here is my code http://pastebin.java-gaming.org/6fe648a403617

Thanks in advance

Cheers

I guess thats, because a click takes longer then one frame. So when you click a Tile, you simply set the clicked Tile to cross/circle inside the render loop. The next time the renderloop gets called, the same Tile is still clicked and you set the Tile to the opposite shape (Cross->Circle/Circle->Cross).
Therefore you should ask, if the Tile is empty and only if it is, set it to the current shape + toggle the shape.
This will also make it impossible to “overwrite” the opponents Tiles.