An evolutionary approach for solving a Rubik's cube