Star Search programming challenge