Fixed a problem with moving in undefined directions
Added Python version check (because input() is completely different in 2.0)