The first mining function, gathers input to get 'water'. Defines legal bounds