Added occupied test to IsLegal
Added cleanup for dependency objects
Fixed some logging bugs when used in GoGui
Indentation standardisation