Update ChessPanel.java

added isValidMove(moving) to check [double checking?] is its a good move