perform eats first value of moveList
perform eats first value of moveList

Because of shift() the moveList is altered. The array is passed by
reference, so it loses an item. This only happens on the first call,
because the next calls are using a copy already.

We can solve by using slice(0) as a clone mechanism
See also:
http://stackoverflow.com/questions/14491405/javascript-passing-arrays-to-functions-by-value-leaving-original-array-unaltere

Closes #7

blonkm/rubiks-cube,blonkm/rubiks-cube,blonkm/rubiks-cube,minakhan01/RubiksHarmony,blonkm/rubiks-cube,minakhan01/RubiksHarmony,minakhan01/RubiksHarmony,minakhan01/RubiksHarmony