grid/grid.go: Remove unused func and convert to pos type
grid/grid.go: Fix build errors about pos and such
update some printing for debug
Merge remote-tracking branch 'hub/addPosType' into addPosType