replaced one if with guards for better readability
first version of enemies shooting against player