refactored enemy callback, and moved some helper files out of Util.java