fixed some bugs and filled out the case filtering for max 1 num per columb
fixed some bugs and filled out the case filtering for max 1 num per columb