cached sprite textures, beginning entityfactory
merged alex's ai
actually merged alex's