Changed checking if a task can be solved to avoid overflow(Computing combinations might overflow)