added methods movePiece and validMove to Board.java