private static String connect(String data) {
        try {
            URL url = new URL("http://merioksa.users.cs.helsinki.fi/cockblocker/scores.php");
            String result = "";
            
            HttpURLConnection connection = (HttpURLConnection)url.openConnection();
            
            connection.setDoInput(true);
            connection.setDoOutput(true);
            connection.setUseCaches(false);
            connection.setRequestMethod("POST");
            connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
            
            DataOutputStream dataOut = new DataOutputStream(connection.getOutputStream());
            dataOut.writeBytes(data);
            dataOut.flush();
            dataOut.close();
            
            BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
            String line = "";
            while((line = in.readLine()) != null) {
                result+= line;
            }
            in.close();
            
            return result;
            
        } catch(Exception e) {
            return null;
        }
        
    }