working but ineffective version

generating candidate solutions but ineffective