my Chess Engine in JS