fixed merge errors, created sensor algo with walls according to cardinal directions