public JPanel createNumButtons() {
		JPanel numbers = new JPanel();
		numbers.setLayout(new GridLayout(1, 1, 3, 1));
		numbers.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
    	numbers.setBackground(new Color(255, 231, 186));

		String keyLabels = "123456789";
	    for (int i = 0; i < keyLabels.length(); i++) {
	    	final String label = keyLabels.substring(i, i + 1);
	        final JButton keyButton = new JButton(label);
	        keyButton.setFont(new Font("Arial", Font.BOLD, 15));
	        numbers.add(keyButton);
	        keyButton.addActionListener(new ActionListener()
	        {
	        	public void actionPerformed(ActionEvent event) {
	        		if(chosenCell.getEditable()) {
	        			chosenCell.setFont(new Font("Lucida Console", Font.BOLD, 18));
	        			//display the number
	        			chosenCell.setText(keyButton.getText());
	        			if(chosenCell != nothingCell) {
	        				//Only change colour for some difficulties
	        				if(difficulty == 1 || difficulty == 2) {
	        					//check box, column and row, if it is legal. If it isnt colour it red, if not black
	        					if (!sudokuBoard.numberIsLegal(chosenCell.getRow(), chosenCell.getCol(), 
	        												  Integer.parseInt(keyButton.getText()))) {
	        						chosenCell.setForeground(Color.RED);
	        						chosenCell.setBackground(Color.WHITE);
	        					} else {
	        						chosenCell.setForeground(Color.BLACK);
	        						chosenCell.setBackground(Color.WHITE);
	        					}
	        				}
	    					//set the number in the sudukoBoard as well
	        				sudokuBoard.setNumber(chosenCell.getCol(), chosenCell.getRow(), Integer.parseInt(keyButton.getText()));
							chosenCell.setBackground(Color.WHITE);
	        			}

        				chosenCell = nothingCell;
	        		}
	            }
	        });
	    }

		return numbers;
	}