separated the neighbors position calculation from the position remapping function
attempted to fix the rules for use with hermit