public void updateColors() {
	   for(int y = 0; y < 9; y++) {
           for(int x = 0; x < 9; x++) {
               int value = MainMenu.game.getBoard().getTile(x, y).getValue();
               //If there is a value in the tile
               if(value > 0) {
            	   //and it is not a tile that cannot be updated
            	   if(!MainMenu.game.getBoard().getTile(x,y).isStarter()) { 
            		   //If the tile conflicts with another in its row, column or square
            		   //and the option to show errors is selected, then make the text red.
		               if (!MainMenu.game.getBoard().isLegal(x,  y, value) && 
		            		   MainMenu.options.isShowError() == true) {
		                     labels[x][y].setForeground(Color.red);
		                     
		               //If the tile doesn't conflict or show errors is not selected, and the value is not the 
		               //correct value for the solution, AND show deviants is selected, then make the text orange.
		               } else if (value !=  MainMenu.game.getCorrectValue(x, y) && 
		            		   MainMenu.options.isShowDeviants() == true) {
		                     labels[x][y].setForeground(Color.orange);
		                     
		               //Otherwise, make the text black.
		               } else {	            	   
		                     labels[x][y].setForeground(Color.black);
		               }
            	   }
	              
	           }
    	   }
	   }
    }