[i, j] = [i + step[0], this.getY(j + step[1])];
while (this.onBoard(i, j) && this.board[i][j] == "") {
let mv = this.getBasicMove([x, y], [i, j]);
[i, j] = [i + step[0], this.getY(j + step[1])];
while (this.onBoard(i, j) && this.board[i][j] == "") {
let mv = this.getBasicMove([x, y], [i, j]);