added clearing function for candidate cells
fixed candidate cell filtering