setting default grid size properly to 1x1
defaulting x and y back to their max and min values if the robot goes too far