Fixed movePiece function in Board.java