Update Board.java

checkIfWord