perl: added down/up directions as well, added tests to test all basic and some complex movements, test results now show success %