Update Chess.java

Fixed a bug where the King can not avoid check when the King moves to get out of check.