retrieve badge state by parseInt since its stored as string