I have been trying to program the game of go in java,but couldn't figure out how to keep track of liberty and remove captured stones (stones with liberty zero) from the board also how to form a chain (stones of the same color) and add their liberties, please help me with some ideas. Thanks in advance