added AI, resources management, castle health