Refactors castlesSpent