added battle logic for monsters