Added property in the Coordinates class to avoid going out from th game field.