Implemented castle purchase action.