Prototyping a 2+ player version of chess in JS