Excellent question OP!

You need to fully qualify the 'Shade' and 'Rank'.



// It cannot find WHITE because it isn't local to ChessGame
King kingWhite = new King(WHITE , KING , 0 , 4 );
...