Queens Attack in JS