Chess engine implemented in nodejs