if(IsPlayerConnected(player1) || IsPlayerConnected(player2))
if(IsPlayerConnected(player1) && IsPlayerConnected(player2))