/* * Clears the lists of pieces. It is used when the game is over. */ public void clear() { whitePieces.clear(); blackPieces.clear(); }