Added checks when attacking

This fixes #3 where a character could attack a building from within. Since
a character in a building is safe, this would have made the player unable
to defend her own house.