fixed bug where walls were flagged as existing if you died near one (and other similar issues)