checks if final target is satisified before generating board