if (piece == V.KING) j = j % V.size.y;
while (V.OnBoard(i, j) && this.board[i][j] == V.EMPTY) {
moves.push(this.getBasicMove(initSquare, [i, j]));
if (piece == V.KING) j = j % V.size.y;
while (V.OnBoard(i, j) && this.board[i][j] == V.EMPTY) {
moves.push(this.getBasicMove(initSquare, [i, j]));