Removed unused getKing function