Changed sendTerminalOutput to check active players