How would I check to see if two spaces in front of a bug class is a clear spot with nothing on it and also does not go over the boundary? Right now this is what I have

```
public void act()
{
  if(canMove())
  {
     Location loc = getLocation();
     Location nextLocation = loc.getAdjacentLocation(getDirection());
     nextLocation = nextLocation.getAdjacentLocation(getDirection());
     if (nextLocation == null)
     {
       move();
       move();
     }

  }
}

```

This doesn't seem to work as the bug does nothing.