public void checkAnswers(boolean complete) {
		
		int correct = 0;
		
		if(!complete) {
			try {
				Thread.sleep(2000);
				for(int i=0;i<3;i++) {
					for(int n=0;n<3;n++) {
						for(int t=0;t<3;t++) {
							for(int e=0;e<3;e++) {
								if(grid[i][n][t][e].getBackground() == Color.RED) {
									grid[i][n][t][e].setBackground(Color.WHITE);
								}								
							}
						}
					}
				}
				repaint();
			}
			catch (InterruptedException e) {e.printStackTrace();}
		} else { //Check if answers are correct
			for(int i=0;i<3;i++) {
				for(int n=0;n<3;n++) {
					for(int t=0;t<3;t++) {
						for(int e=0;e<3;e++) {
							if(grid[i][n][t][e].getText().equals(String.valueOf(solution[i][n][t][e]))) {
								correct++;
								if(grid[i][n][t][e].isEditable()) {grid[i][n][t][e].setBackground(Color.GREEN);}
							} else {grid[i][n][t][e].setBackground(Color.RED);}
						}
					}
				}
			}
			if(correct == 81) {
				check.setText("Well Done!");
			} else {
				check.setText("Whoops!");
			}
			
		}
		
	}