Added life management and auto attack