I have started using Java very recently, and have been assigned to make a program for the board game, nine mens morris. This seems to be extremely outside of my skill level, so apologies if my solution seems like a strange way to achieve what Im trying. Basically, I have set up 24 layers, one for each space on the gameboard where a piece can be placed. I had planned to set up properties "black", "white" and "blank". The idea was to make it possible to set the layers as "black" or "white" on click, dependent on whos turn it is, with the original state being "blank". Then I intended to use an "If" statement to set the piece placed on the gameboard dependent on the state of the layer. Would anyone be able to tell me how I would be able to set up such properties and assign them to a layer when the layer is clicked on?