Make movement input safer against invalid input
Make movement input safer against invalid input

The code worked fine when the user's input was valid, but could crash
for an invalid input.

fontesrp/rubiks_cube