Chess Javascript Code For Practice