Update functions.lua

Fix: After the round if someone kills is the winner, and the pvp is still running.