new gui, made global object hold more code, and enemy ai code