deleted undiscovered wall tracking code
added randval header to reduce boilerplate code