@Override
	public void paintComponent(Graphics g)
	{
		super.paintComponent(g);

		Graphics2D g2 = (Graphics2D) g;

        g2.setColor(Color.WHITE);
		Rectangle line;
		
		for(int i = 0; i < 4; i++)
		{
			line = new Rectangle();

   			switch(i)
			{				
							//gets the x pos and adds the width (adjusted for the padding). then adds 5 to put it in the middle
				case 0 : 	line.x = gameBoard[0].getX() + (gameBoard[0].getWidth() - horizontalPadding / 2) + 5; //pos
							line.y = 0;
							line.width = 4;
							line.height = this.getHeight();
							break;
							
							//gets the x pos and adds the width (adjusted for the padding). then adds 5 to put it in the middle
				case 1 : 	line.x = gameBoard[1].getX() + (gameBoard[1].getWidth() - horizontalPadding / 2) + 5;
							line.y = 0;
							line.width = 4;
							line.height = this.getHeight();
							break;
							
				case 2 :	line.x = gameBoard[0].getX();
							
							//gets the y pos and adds the height(adjusted for the padding). then adds 5 to put it in the middle
							line.y = gameBoard[0].getY() + (gameBoard[0].getHeight() - verticalPadding / 2) + 5;
							line.width = ((gameBoard[5].getX() + gameBoard[5].getWidth()) - line.x); //distance from the left x pos to the right x pos
							line.height = 4;
							break;
							
				case 3 :	line.x = gameBoard[3].getX();
					
							//gets the y pos and adds the height(adjusted for the padding). then adds 5 to put it in the middle
							line.y = gameBoard[3].getY() + (gameBoard[3].getHeight() - verticalPadding / 2) + 5;
							line.width = ((gameBoard[5].getX() + gameBoard[5].getWidth()) - line.x); //distance from the left x pos to the right x pos
							line.height = 4;
							break;
			}
			
			g2.fill(line);
		}
	}