add attack function for zombies
bug fix