I found out why the stamina bar glitches, so its because I forgot reset the stamina variable when you switch cards. ( its a deck variable if yall don't know.) So when you switch cards the stamina bar resets but the variable doesnt so it just streches out until 337 stamina.