pulled out hitWall function, adjusted npc hit wall check