implemented IAMAT skeleton functionality. also created a flood() func