public Coordinates Forward()
 {
     Coordinates original = position;
     switch (orientation)
     {
         case Bearing.North:
             position.y++;
             break;
         case Bearing.East:
             position.x++;
             break;
         case Bearing.South:
             position.y--;
             break;
         case Bearing.West:
             position.x--;
             break;
     }
     if (scents.Contains(position))
     {
         position = original;
     }
     return position;
 }
 public Robot(Coordinates position, Bearing orientation)
 {
     this.position = position;
     this.orientation = orientation;
 }
 public bool onGrid(Coordinates position)
 {
     if (0 <= position.x && position.x <= width && 0 <= position.y && position.y <= height)
     {
         return true;
     }
     return false;
 }