Made building and castle classes actually extend things