Update ChessPanel.java

getting there. added .ordinal() to convert enum value to integer.