simple battle program