added stamina function for minigames