js chess. not finished