contains

Checks if the x and y values are in the grid

Return

true if in the grid

Parameters

x

the x-coordinate

y

the y-coordinate