public void paintComponent(Graphics g){
		Graphics2D g2 = (Graphics2D) g;
		g2.setColor(Color.black);
		for(int row = 0; row < game.getBoard().getLength(); row++){
			for(int col = 0; col < game.getBoard().getWidth(); col++){
				Rectangle rec = new Rectangle(col *cellSize,row*cellSize,cellSize,cellSize);
				if(game.getBoard().getValue(row, col) != -2){

					if(levelCount%5 == 0){
						g2.setColor(Color.BLUE);
					}
					else if(levelCount%5 == 1){
						g2.setColor(Color.GREEN);
					}
					else if(levelCount%5 == 2){
						g2.setColor(Color.MAGENTA);
					}
					else if(levelCount%5 == 3){
						g2.setColor(Color.RED);
					}
					else if(levelCount%5 == 4){
						g2.setColor(Color.ORANGE);
					}
	
					
					if(game.getBoard().getValue(row, col) == -1){
						g2.setColor(Color.PINK);
						
					}	
					g2.fill(rec);
				}
				g2.setColor(Color.black);
				
				
				repaint();
			}
		}
	}