Removed unecessary/duplicate directions in array