updated pvp script with minor fixes