Refactoring the ChessTimer classes to remove Swing dependencies