Fixing JS error when castle is destroyed