moving shogi viewer related things into shogi.js, keeping game.js as app/client code.