edited script to allow reselection on battle menu