Moved some functions to enemies.lua

Made some of the tables global so that they could be referenced by
enemies.lua and we could move some functions into that file.