solved cube free lists problem