added walldetection for spells