added battle logic for critical hits