app.js contains checkmate but with one bug. AppNW.js contains possible wrong solution