refactoring client side code so that both server-side and client-side rubiks-solution code can coexist