public boolean[] tallyPieces() throws IOException
	{
		boolean[] myPieces = new boolean[torrentInfo.piece_hashes.length];
		byte[] comparator = new byte[]{ 0, 0, 0, 0,};
		byte[] temp = new byte[4];
		int i = 0;
		for (i = 0; i < torrentInfo.piece_hashes.length; i += 1)
		{
			raf.seek(i * torrentInfo.piece_length);
			raf.read(temp, 0, 4);
			if (Arrays.equals(comparator, temp))
			{
				myPieces[i] = false;
//				System.out.println("tallyPieces has found that piece: " + i + " is " + myPieces[i]);
			}
			else
			{
				byte[] piece;
				if (i == torrentInfo.piece_hashes.length - 1)
				{
					piece = new byte[torrentInfo.file_length % torrentInfo.piece_length];
//					System.out.println("Last Piece, piece index: " + i + " is " + piece.length + " bytes long.");
				}
				else
					piece = new byte[torrentInfo.piece_length];
				raf.seek(i * torrentInfo.piece_length);
				raf.read(piece, 0, piece.length);
				PieceMessage tempPM = new PieceMessage(i, 0, piece);
				if(manager.verifyPiece(tempPM))
					myPieces[i] = true;
				else
					myPieces[i] = false;
//				System.out.println("tallyPieces has found that piece: " + i + " is " + myPieces[i]);
			}
		}
		return myPieces;
	}