Updated player to make potions limited and fixed attack function