public boolean containsAndDeletes(int fRow, int fCol, int toRow, int toCol, int [][] a) {

		for (int i = 0; i < moveList.size(); i++){

			if (moveList.get(i).getFromRow() == fRow && moveList.get(i).getFromCol() == fCol && moveList.get(i).getToRow() == toRow && moveList.get(i).getToCol() == toCol){

				for (int p = 0; p < 8; p++){
					for (int q = 0; q < 8; q++){
						if (a [p][q] == moveList.get(i).getResultSq(p, q));
						else return false;

					}
				}
				moveList.remove(i);
				return true;
			}		
		}

		return false;
	}