public CachedRowSetImpl getRanking(){
		try {
			Socket socket = new Socket(SERVER_ADDRESS_MAIN, MAIN_PORT);
			
			socket.setSoTimeout(TIMEOUT);
			
			OutputStream outputStream = socket.getOutputStream();
			ObjectOutputStream objectOutputStream = new ObjectOutputStream(outputStream);
			
			InputStream inputStream = socket.getInputStream();
			ObjectInputStream objectInputStream = new ObjectInputStream(inputStream);
			
			objectOutputStream.writeObject("GET_RANKING");
			objectOutputStream.flush();

			CachedRowSetImpl rowSet = (CachedRowSetImpl)objectInputStream.readObject();
			
			socket.close();
			return rowSet;
		}catch (SocketException e){
			new ErrorFrame("Server unreachable!");
		} catch (SocketTimeoutException e){
			new ErrorFrame("Connection timed out");
		} catch (Exception e) {
			new ErrorFrame("An unknown Error occoured");
		}
		return null;
	}