add solver check cube valid