Some tweaks to the algorithm

I rearranged the If statements and implemented some dummy enemies to
check if my code works.
Still not satisfied , though.