extract events to a separate module, man that was exhausting
minor cleanup in preparation to support preset custom maps