fixed castle logic. would always return false