Added isValid() to check for adjacent buildings.
Merge remote-tracking branch 'origin/master'