not sure cause i dont use 3.1, but in order for this snippet to execute correctly, x needs to be declared as a raw_input because names are strings, input is good for intergers but my name isnt 1337 :D also Left and Right Up and Down are not declared so there is errors, too. to make your if elif statements work, it has to be in raw_input