Fixed numerous bugs and added enemy creation inside the editor