modified the structure of shogi module