結果 : how to code a chess game in javascript