private void paintBackgroundAndPieces(Graphics g) {
		for(int i = 0 ;i < 64;i++)
		{
			int x = i%8;
			int y = i/8;
			
			if((x+y)%2==0)
			{g.fillRect(myCellSize*(x), myCellSize*(y), myCellSize, myCellSize);}
			
			Piece pieceAtPosition = myGame.getPiece(new Point(x,7-y));
			if(pieceAtPosition!=null)
			{
				g.drawImage(stringToImage.get(pieceAtPosition.getImageName()), myCellSize*x, myCellSize*y, this);
			}
		}
		
	}