private boolean submitScore(boolean next){
		//submit_score1 = new String[score.length];
		//System.out.println("Submitscore"+db.current_score.getScores().toString());
		HashMap<String, Float> submit_score = new HashMap<>();
		for (int i = 0; i < score.length; i++) {
			for (int j = 0; j < score[i].length; j++) {
				if(score[i][j].isSelected()){
					submit_score.put(scoreDesc[i], Float.parseFloat(score[i][j].getText()));
					//submit_score1[i] = score[i][j].getText();
				}				
			}
			if(!submit_score.containsKey(scoreDesc[i])) {
				if (next) errormsg.setText("Please enter score for all categories.");
				else errormsg.setText("");
				return false;
			}
		}
		
		if (db.current_score ==null || !submit_score.equals(db.current_score.getScores())){
			//System.out.println("Submitting score...");
			try{
				db.submitScore(submit_score);
			}
			catch(SQLException e){
				errormsg.setText("Database error");
				e.printStackTrace();
				return false;
			}
		}
		//else System.out.println("No score change");
		for (int i = 0; i < score.length; i++) {
			scoregroup[i].clearSelection();
		}		
		errormsg.setText(" ");
		return true;
	}