changes to chessgame.java