Fixes crashing bug in passive
gate trap placement fixes, also adds trap penalty.
Improves logging.