private void drawTiles(int imageWidth, int imageHeight, Graphics g)
	{
		char Letter = 'A';
		
		// Draws the board squares onto the panel
		for(int i = 0; i < boardSize; i++, Letter++)
		{		
			for(int j = (boardSize-1); j >= 0; j--)
			{
				if(j % 2 == i % 2)
				{
					g.setColor(Color.blue);
					g.fillRect((getWidth()*i/boardSize), (getHeight()*j/boardSize), getWidth()/boardSize, getHeight()/boardSize);
				}
				else
				{
					if(controller.whitePlayerTurn())
					{
						g.setColor(Color.white);
					}
					else
					{
						g.setColor(Color.black);
					}
					g.fillRect((getWidth()*i/boardSize), (getHeight()*j/boardSize), getWidth()/boardSize, getHeight()/boardSize);
				}
				g.setFont(new Font("Times New Roman", Font.BOLD, 20));
				g.setColor(Color.RED);
				
				g.drawString(" " + Letter + (boardSize-j), i * imageWidth, j * imageHeight + imageHeight);
			}
		}
		controller.isKingInCheckNotifier();
	}