added containsLocation function and converted a function to return yards