Speed up qw by saving a list of all enemies in sight.
Use supdist.
Don't search LOS for Lair unless you've found the entrance already.