Project requirements edit

Moved array.push command to within the  array function to satisfy
project requirements, as well as send the entire "monsters" array into
the attack function to satisfy project requirements.