Rubic cube program for recovery