Added the contains function

This function sees if a list contains an element at x,y and returns
true if it does