Created matches funciton, now need to be able to call it