Move flag-related code into new pkg package

IF YOUR FRIENDS JUMPED OFF A BRIDGE WOULD YOU