Check boxes. How to prevent others from checking when one is already checked?

you can add them to an array and before setting them check if any of them are true , But here is the problem with this setup , if player ticks a checkbox and changes his mind and want to tick another he cant do it !

So Add them to an array and before setting any variables , iterate through that array and turn them all false ,Then set the chosen one to true . this way player can choose only 1 and can change his mind after .