make drawChessBoard self-contained