changed undefined piece to 'X'