public void checkConnection() throws Exception
	{
		if (!socket.isConnected())
		{
			//fixed
			if(Server.mapTest.containsKey(socket))
			{
				Server.mapTest.remove(socket);
			}
			
			//fixed
			for (Map.Entry<Socket,User> entry: Server.mapTest.entrySet())
			{
				Socket temp = entry.getKey();
				PrintWriter tempWriter = new PrintWriter(temp.getOutputStream());
				tempWriter.println("User from "+ temp.getLocalAddress().getHostName() +" disconnected");
				tempWriter.flush();
				
				System.out.println("User from "+ temp.getLocalAddress().getHostName() +" disconnected");
			}
		}
	}