add enemies with a simple ai,bug fixed and other optimization