-- Runs whenever a player leaves the game. If that player was actually in the game, removes them from the table and checks for game over state

game.Players.PlayerRemoving:Connect(removeActivePlayer)

AddActivePlayer.OnServerEvent:Connect(addActivePlayer)
RemoveActivePlayer.OnServerEvent:Connect(removeActivePlayer)