* @throws IOException If a new ServerSocket could not be created.
*/
private void restartServer(int port) throws IOException
{
initIllegalNames();
pictionaryGame = new PictionaryGame(category, words, 60);
if (serverThread != null && serverThread.isAlive())
throw new IllegalStateException("Server is already listening for connections.");
shutdown = false;
serverSocket = new ServerSocket(port);
serverThread = new ServerThread();