I want to write a chess program. But I dont know how to do the Two players take turn alternately which means if I clicked one chess and move one step then it cannot move until the player slect his chess and move it.
Another techni barrier is that I dont want to set which side begin first. I want the first mouse clicked on which color of chess then the player who choose the color should start and another.

