I can tell you right now that this bit of code doesn't account for the fact that the monsters are supposed to actually fall when they fall to their death.