changed i,j and x,y BOARD.java