Freeing the Clones/Pebbling a Chessboard implementation in Java