Noughts and Crosses

I am creating a Noughts and Crosses game. I am using 9 push buttons and 2 radio buttons and needing them to communicate. Like when player X has clicked on radio button X then clicks on one of the 9 push buttons I want X to be displayed on that button and the same with player 0. How do I do that?

you mean a two person game or an online multi-player game?

Not an online multi-player game just a two person offline game.