public void paint(Graphics g){
		
		if(g instanceof Graphics2D){
			Graphics2D g2 = (Graphics2D) g;
			g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);//set smooth text on
			
			g2.setColor(new Color(34,139,34));//outside rect --> color: forest green
			g2.fillRect(x, y, blockWidth, blockWidth);//100/80
			
			g2.setColor(selectedColor);////inside rect --> color:lime green
			g2.fillRect(x+10, y+10, blockWidth-20, blockWidth-20);//80/60
			
			g2.setColor(new Color(255,255,255));//letter color
			if(blockWidth==100||blockWidth==80||blockWidth==40){
				g2.setFont(new Font("Arial", Font.PLAIN, letterFontSize));//letter size in letter block
			} else {
				g2.setFont(new Font("Arial", Font.BOLD, letterFontSize));//letter size in restart and end buttons
			}
			
			
			//Center letter in block
			int stringLetterLength = (int) g2.getFontMetrics().getStringBounds(s, g2).getWidth();
		    int start = blockWidth/2 - stringLetterLength/2;
		    g2.drawString(s, start + x, y+letterHeight);
		    g2.setFont(new Font("Arial", Font.BOLD, numberFontSize));
		    g2.drawString(""+points, x+13, y+numberHeight);
        
		}
	}