move function now accepts Cardinal directions as input